package com.sm.dao;

import com.sm.model.IncomeDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IncomeDetailMapper {
    int deleteByPrimaryKey(Integer incomeDetailId);

    int insert(IncomeDetail record);

    int insertSelective(IncomeDetail record);

    IncomeDetail selectByPrimaryKey(Integer incomeDetailId);

    List<IncomeDetail> selectByUserId(Integer userId);

    double getSumByUserId(@Param("userId") Integer userId);

    Integer getUserNumByUserId(@Param("userId") Integer userId);
}
